<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
      }

      body {
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #2c3e50;
      }

      main {
        width: 800px;
        height: 300px;
        display: flex;
        justify-content: space-evenly;
      }

      main div {
        width: 200px;
        height: 200px;
        transition: all 0.5s;
        border: solid 2px #ddd;
      }

      main div img {
        width: 100%;
        height: 100%;
      }

      main:hover div {
        transform: scale(0.8) translateY(-30px);
        cursor: pointer;
        /* 图片的模糊程度 */
        filter: blur(15px);
      }

      main div:hover {
        transform: scale(1.6);
        color: white;
        filter: none;
        z-index: 2;
      }
    </style>
  </head>
  <body>
    <main>
      <div>
        <img src="jpg/1.jpg" alt="" />
      </div>
      <div><img src="jpg/2.jpg" alt="" /></div>
      <div><img src="jpg/3.jpg" alt="" /></div>
    </main>
  </body>
</html>
